package com.grq.mis.model.sys;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Me implements Serializable {

    private Long id;
    private String username;
    private String name;
    private String company;
    private String phone;

    private Long departmentId;
    private String departmentName;

    private Boolean isAdmin;

    public Boolean getAdmin() {
        return 1L == id;
    }
}
